package utils;

public enum ResultCode {
    SUCCESS(200,"操作成功"),
    NO_PERMISSION(403,"没有权限"),
    LOGIN_DISABLED(305,"未登录"),
    USERNAME_PASSWORD_ISNULL(1001,"用户名或密码为空"),
    USE_ISNULL(1002,"用户不存在"),
    PASSWORD_ERROR(1003,"密码错误"),
    ERROR(500,"操作失败"),
    CODE_ISNULL(8000,"验证码为空"),
    PHONE_ISNULL(8001,"手机号为空"),
    CODE_PHONE_ISNULL(8002,"手机号或验证码为空"),
    CODE_PHONE_Error(8003,"验证失败"),
    CODE_Error(8004,"验证码输入错误"),

    ;
    private Integer code;
    private String msg;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    ResultCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
